package com.test.testCode.insertphone.controller;

import com.test.testCode.insertphone.service.StudTelBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TelphoneCtrl {

    @Autowired
    private StudTelBookService studTelBookService;

    /**
     * 向sys_stud_telbook表插入数据（售后服务--电话）
     * @return
     */
    @GetMapping("/tel")
    public int insertTel(){
        return studTelBookService.addTelBook();
    }
}
